package 结构型设计模式.策略模式.demo;

/**
 * @Author lf
 * @Date 3/23/2024
 */
public class FormalGreetingStrategy implements GreetingStrategy {
    @Override
    public void greet(String name) {
        System.out.println("Hello, Mr./Ms. " + name + ".");
    }
}